package tech.aistar.corejava.day06.HomeWork;

import static tech.aistar.corejava.day06.HomeWork.Bank.depoist;
import static tech.aistar.corejava.day06.HomeWork.Bank.withdraw;

/**
 * Created by 李雨昂 on 2019/7/22.
 */

//	测试类
public class AccountTest {
    public static void main(String[] args) {
        Account account1 = new SavingAccount(123456789,"lya",123,
                "15776547821",10000,0);
        Account account2 = new CreditAccount(987654321,"tom",456,
                "18814642418",4567,1,2500,100);

        Account[] arrs = new Account[50];
        //arrs.registAccount(account1);


        depoist(account1,500);
        withdraw(account2,500);


    }


}
